package com.centaline.androidsalesblog.model.businissobject;

import android.os.Parcel;
import android.os.Parcelable;

import com.centaline.androidsalesblog.model.databaseobject.StaffDo;
import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;

/**
 * 门店列表
 * Created by Lihq on 16/1/15.
 */
public class StoreBo implements Parcelable {

    private String StoreName;//门店名称
    private String StoreTel;//门店电话
    private String StoreAddr;//门店地址
    private int GscopeID;
    private String GscopeName;
    private double Lpt_X;
    private double Lpt_Y;
    private int Distance;
    private int StoreID;
    private int AgentNum;
    @SerializedName("staffs")
    private ArrayList<StaffDo> staffDos;
    private String TencentVistaUrl;
    private boolean flag = false;

    public StoreBo() {
    }

    public StoreBo(String storeName) {
        StoreName = storeName;
    }

    public String getStoreName() {
        return StoreName;
    }

    public void setStoreName(String storeName) {
        StoreName = storeName;
    }

    public String getStoreTel() {
        return StoreTel;
    }

    public void setStoreTel(String storeTel) {
        StoreTel = storeTel;
    }

    public String getStoreAddr() {
        return StoreAddr;
    }

    public void setStoreAddr(String storeAddr) {
        StoreAddr = storeAddr;
    }

    public int getGscopeID() {
        return GscopeID;
    }

    public void setGscopeID(int gscopeID) {
        GscopeID = gscopeID;
    }

    public String getGscopeName() {
        return GscopeName;
    }

    public void setGscopeName(String gscopeName) {
        GscopeName = gscopeName;
    }

    public double getLpt_X() {
        return Lpt_X;
    }

    public void setLpt_X(double lpt_X) {
        Lpt_X = lpt_X;
    }

    public double getLpt_Y() {
        return Lpt_Y;
    }

    public void setLpt_Y(double lpt_Y) {
        Lpt_Y = lpt_Y;
    }

    public int getDistance() {
        return Distance;
    }

    public void setDistance(int distance) {
        Distance = distance;
    }

    public int getStoreID() {
        return StoreID;
    }

    public void setStoreID(int storeID) {
        StoreID = storeID;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getAgentNum() {
        return AgentNum;
    }

    public void setAgentNum(int agentNum) {
        AgentNum = agentNum;
    }

    public ArrayList<StaffDo> getStaffDos() {
        return staffDos;
    }

    public void setStaffDos(ArrayList<StaffDo> staffDos) {
        this.staffDos = staffDos;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.StoreName);
        dest.writeString(this.StoreTel);
        dest.writeString(this.StoreAddr);
        dest.writeInt(this.GscopeID);
        dest.writeString(this.GscopeName);
        dest.writeDouble(this.Lpt_X);
        dest.writeDouble(this.Lpt_Y);
        dest.writeInt(this.Distance);
        dest.writeInt(this.StoreID);
    }

    protected StoreBo(Parcel in) {
        this.StoreName = in.readString();
        this.StoreTel = in.readString();
        this.StoreAddr = in.readString();
        this.GscopeID = in.readInt();
        this.GscopeName = in.readString();
        this.Lpt_X = in.readDouble();
        this.Lpt_Y = in.readDouble();
        this.Distance = in.readInt();
        this.StoreID = in.readInt();
    }

    public static final Parcelable.Creator<StoreBo> CREATOR = new Parcelable.Creator<StoreBo>() {
        public StoreBo createFromParcel(Parcel source) {
            return new StoreBo(source);
        }

        public StoreBo[] newArray(int size) {
            return new StoreBo[size];
        }
    };

    public String getTencentVistaUrl() {
        return TencentVistaUrl;
    }

    public void setTencentVistaUrl(String tencentVistaUrl) {
        TencentVistaUrl = tencentVistaUrl;
    }
}
